package com.party.business.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.party.common.annotation.Excel;
import com.party.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.Size;

/**
 * 获奖作品对象 t_award_work
 *
 * @author ruoyi
 * @date 2024-10-13
 */
@Data
@TableName(value = "t_award_work")
@EqualsAndHashCode(callSuper = true)
public class TAwardWork extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    /**
     * "标题"
     */
    @Excel(name = "标题")
    @Size(min = 0, max = 50, message = "标题不能超过50个字符")
    private String title;

    /**
     * "类型"
     */
    @Excel(name = "类型")
    private String type;

    /**
     * "获奖等级类型"
     */
    @Excel(name = "获奖等级类型")
    private String levelType;

    /**
     * "图片"
     */
    @Excel(name = "图片")
    private String image;

    /**
     * "内容"
     */
    @Excel(name = "内容")
    private String content;

    /**
     * "获奖人员"
     */
    @Excel(name = "获奖人员")
    @Size(min = 0, max = 1000, message = "获奖人员不能超过1000个字符")
    private String personInfo;

    /**
     * "审核状态"
     */
    @Excel(name = "审核状态")
    private String checkStatus;

    /**
     * "审核时间"
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date checkDate;

    /**
     * "审核备注"
     */
    @Excel(name = "审核备注")
    private String checkRemark;

    private String delFlag;


    /**
     * "获奖等级"
     */
    @TableField(exist = false)
    private String levelTypeName;


}
